package com.llb666.e.shop.infrastructure.convert;

import com.llb666.e.shop.domain.entity.ItemsSpec;
import com.llb666.e.shop.infrastructure.po.ItemsSpecPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 斌~
 * @date 2022/8/7 下午8:36
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ItemsSpecCvt {
    ItemsSpecCvt INSTANCE = Mappers.getMapper(ItemsSpecCvt.class);

    ItemsSpecPo do2po(ItemsSpec itemsSpec);

    ItemsSpec po2do(ItemsSpecPo itemsSpecPo);

    List<ItemsSpec> po2doList(List<ItemsSpecPo> itemsSpecPolist);
}
